<div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>查询条件</h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;" v-on:click="_moreCondition()">{{listParkingSpaceInfo.moreCondition == true?'隐藏':'更多'}}
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-4">
                            <div class="form-group input-group">
                                <input type="text" placeholder="请选择停车场" v-model="listParkingSpaceInfo.conditions.areaNum" class="form-control">
                                <div class="input-group-prepend">
                                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_openChooseParkingArea()">
                                        <i class="fa fa-search"></i> 选择
                                    </button>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <input type="text" placeholder="请填写车位编号" class=" form-control" v-model="listParkingSpaceInfo.num">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <select class="custom-select" v-model="listParkingSpaceInfo.conditions.state">
                                    <option selected value="">必填，请选择车位状态</option>
                                    <option value="S">出售</option>
                                    <option value="H">出租</option>
                                    <option value="F">空闲</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-1">
                            <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryRoomMethod()">
                                <i class="fa fa-search"></i> 查询
                            </button>
                        </div>
                    </div>
                    <div class="row" v-if="listParkingSpaceInfo.moreCondition == true">
                        <div class="col-sm-4">
                            <div class="form-group">
                                <input type="text" placeholder="请填写车位ID" class="form-control form-control-sm" v-model="listParkingSpaceInfo.conditions.psId">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>停车位信息</h5>
                    <div class="ibox-tools" style="top:10px;">
                        <form>
                            <div class="form-row">
                                <div class="col">
                                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddParkingSpaceModal(-1)">
                                        <i class="fa fa-plus"></i>添加
                                    </button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                            <tr>
                                <th data-hide="phone" class="text-center">停车场</th>
                                <th data-hide="phone" class="text-center">车位</th>
                                <th data-hide="phone" class="text-center">车位状态</th>
                                <th data-hide="phone" class="text-center">车位类型</th>
                                <th data-hide="phone" class="text-center">面积</th>
                                <th class="text-center">创建时间</th>
                                <th class="text-center">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="parkingSpace in listParkingSpaceInfo.parkingSpaces">
                                <td class="text-center">
                                    {{parkingSpace.areaNum}}号停车场
                                </td>
                                <td class="text-center">
                                    {{parkingSpace.num}}车位
                                </td>
                                <td class="text-center">
                                    {{vc.component._viewParkingSpaceState(parkingSpace.state)}}
                                </td>
                                <td class="text-center">
                                    {{parkingSpace.parkingTypeName}}
                                </td>
                                <td class="text-center">
                                    {{parkingSpace.area}}
                                </td>
                                <td class="text-center">
                                    {{parkingSpace.createTime}}
                                </td>
                                <td class="text-center">
                                    <!-- <div class="btn-group" v-if="parkingSpace.state =='F'">
                                    <button class="btn-white btn btn-xs"
                                        v-on:click="_openToHireParkingSpaceModel(parkingSpace)">出租</button>
                                </div>
                                <div class="btn-group" v-if="parkingSpace.state =='F'">
                                    <button class="btn-white btn btn-xs"
                                        v-on:click="_openToSellParkingSpaceModel(parkingSpace)">出售</button>
                                </div> -->
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs" v-on:click="_openEditParkingSpaceModel(parkingSpace)">修改
                                    </button>
                                    </div>
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs" v-on:click="_openDelParkingSpaceModel(parkingSpace)">删除
                                    </button>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="7">
                                    <ul class="pagination float-right"></ul>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="property/addParkingSpace" notifyLoadDataComponentName="listParkingSpace"></vc:create>
    <vc:create path="property/editParkingSpace" notifyLoadDataComponentName="listParkingSpace"></vc:create>
    <vc:create path="property/deleteParkingSpace" notifyLoadDataComponentName="listParkingSpace"></vc:create>
    <vc:create path="property/chooseParkingArea" emitChooseParkingArea="listParkingSpace" emitLoadData="listParkingSpace"></vc:create>
</div>